package com.sapient.service;

public final class QuestionDTO {
	
	private int firstNumber;
	private int secondNumber;
	private String operation;
	
	public QuestionDTO(int firstNumber, int secondNumber, String operation) {
		this.firstNumber = firstNumber;
		this.secondNumber = secondNumber;
		this.operation = operation;
	}
	
	public int getFirstNumber() {
		return this.firstNumber;
	}
	
	public int getSecondNumber() {
		return this.secondNumber;
	}
	
	public String getOperation() {
		return this.operation;
	}
	
	@Override
	public boolean equals(Object questionObject){
		if(questionObject instanceof QuestionDTO){
			QuestionDTO question = (QuestionDTO)questionObject;
			if(this.firstNumber == question.getFirstNumber()
					&& this.secondNumber == question.getSecondNumber()
					&& this.operation.equals(question.getOperation())){
				return true;
			}
		}
		return false;
	}
}